package com.cjkj.applet.domain;

import com.cjkj.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 患者就诊记录对象 t_pat_visit
 * 
 * @author cjkj
 * @date 2024-08-30
 */
public class TPatVisit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 就诊号 */
    private Long visitNo;

    /** 患者ID(系统唯一标识) */
    private Long patientId;

    /** 患者姓名 */
    private String patientName;

    /** 医院ID */
    private String hospitalId;

    /** 科室ID */
    private String deptId;

    /** 医生ID */
    private String doctorId;

    /** 年龄 */
    private Integer age;

    /** 就诊时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date visitTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date outTime;

    /** 床位号 */
    private String bedNo;

    /** 租用天数 */
    private Integer rentalDays;

    /** 就诊状态（0=就诊中；1=就诊结束） */
    private String visitStatus;

    /** 就诊地：在家或在院 */
    private String place;

    /** 诊断 */
    private String diagnosis;

    /** 数据类型 */
    private String dataType;

    /** 微信账户ID */
    private Long appletAccountId;

    /** 删除标志：0=正常；2=已删除 */
    private String delFlag;

    /**
     * TJ03运行模式
     * 1-动态血压模式
     * 2-动态心电模式
     * 3-动态血压+动态心电模式
     * 4-普通血压计模式
     */
    private String mode;

    public void setVisitNo(Long visitNo) 
    {
        this.visitNo = visitNo;
    }

    public Long getVisitNo() 
    {
        return visitNo;
    }
    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setPatientName(String patientName) 
    {
        this.patientName = patientName;
    }

    public String getPatientName() 
    {
        return patientName;
    }
    public void setHospitalId(String hospitalId) 
    {
        this.hospitalId = hospitalId;
    }

    public String getHospitalId() 
    {
        return hospitalId;
    }
    public void setDeptId(String deptId) 
    {
        this.deptId = deptId;
    }

    public String getDeptId() 
    {
        return deptId;
    }
    public void setDoctorId(String doctorId)
    {
        this.doctorId = doctorId;
    }

    public String getDoctorId()
    {
        return doctorId;
    }
    public void setAge(Integer age) 
    {
        this.age = age;
    }

    public Integer getAge() 
    {
        return age;
    }
    public void setVisitTime(Date visitTime) 
    {
        this.visitTime = visitTime;
    }

    public Date getVisitTime() 
    {
        return visitTime;
    }
    public void setOutTime(Date outTime) 
    {
        this.outTime = outTime;
    }

    public Date getOutTime() 
    {
        return outTime;
    }
    public void setBedNo(String bedNo) 
    {
        this.bedNo = bedNo;
    }

    public String getBedNo() 
    {
        return bedNo;
    }
    public void setRentalDays(Integer rentalDays) 
    {
        this.rentalDays = rentalDays;
    }

    public Integer getRentalDays() 
    {
        return rentalDays;
    }
    public void setVisitStatus(String visitStatus) 
    {
        this.visitStatus = visitStatus;
    }

    public String getVisitStatus() 
    {
        return visitStatus;
    }
    public void setPlace(String place) 
    {
        this.place = place;
    }

    public String getPlace() 
    {
        return place;
    }
    public void setDiagnosis(String diagnosis) 
    {
        this.diagnosis = diagnosis;
    }

    public String getDiagnosis() 
    {
        return diagnosis;
    }
    public void setDataType(String dataType) 
    {
        this.dataType = dataType;
    }

    public String getDataType() 
    {
        return dataType;
    }
    public void setAppletAccountId(Long appletAccountId) 
    {
        this.appletAccountId = appletAccountId;
    }

    public Long getAppletAccountId() 
    {
        return appletAccountId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("visitNo", getVisitNo())
            .append("patientId", getPatientId())
            .append("patientName", getPatientName())
            .append("hospitalId", getHospitalId())
            .append("deptId", getDeptId())
            .append("doctorId", getDoctorId())
            .append("age", getAge())
            .append("visitTime", getVisitTime())
            .append("outTime", getOutTime())
            .append("bedNo", getBedNo())
            .append("rentalDays", getRentalDays())
            .append("visitStatus", getVisitStatus())
            .append("place", getPlace())
            .append("diagnosis", getDiagnosis())
            .append("dataType", getDataType())
            .append("appletAccountId", getAppletAccountId())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("mode", getMode())
            .toString();
    }
}
